<?php

namespace app\index\controller\consulting;

use ShidianUtil\Thinkphp\Response\ApiResponse;
use ShidianUtil\Utils\CheckUtil;
use app\index\model\UM as UM;
use app\index\service\LawCaseOptionsDaysService;
use think\APP;
use think\Request as Request;

/**
 * LawCaseOptionsDays 控制器
 * Class LawCaseOptionsDays
 * @package app\index\controller\consulting;
 * @link https://www.kancloud.cn/manual/thinkphp6_0/1037509
 * @see \app\index\validate\consulting\LawCaseOptionsDays
 */
class LawCaseOptionsDays
{
    // 请求参数
    private Request $request;

    // service
    private LawCaseOptionsDaysService $service;

    public function __construct(Request $request, LawCaseOptionsDaysService $lawCaseOptionsDaysService)
    {
        $this->request = $request;
        $this->service = $lawCaseOptionsDaysService;
    }

    /**
     * 案源-可选天数-列表
     * @return ApiResponse
     * @url /consulting/law_case_options_days/index
     */
    public function index(): ApiResponse
    {
        return ApiResponse::success($this->service->index());
    }
}
